package com.yuju.enums;

/**
 * 
 * 类名：LogBizTypeEnum  <br />
 *
 * 功能：业务日志类型枚举
 *
 * @author : xuehj <br />
 * @Date : 2018年1月3日 上午9:21:11  <br />
 * @version : 1.1 <br />
 */
public enum LogBizTypeEnum {
	RESERVE_LOG_TYPE("001", "预定日志"),
	RESERVE_LOG_BIZ_TYPE("010", "预订"),
	RESERVE_ACCOUNT_LOG_BIZ_TYPE("011", "预订账务"),
	RESERVE_CANCEL_LOG_BIZ_TYPE("012", "取消预订"),
	RESERVE_RECOVER_LOG_BIZ_TYPE("013", "恢复预订"),

	CHECKIN_LOG_TYPE("002", "入住日志"),
	CHECKIN_DIRECT_LOG_BIZ_TYPE("014", "直接入住"),
	CHECKIN_RESERVE_LOG_BIZ_TYPE("015", "预订入住"),
	

	CHECKOUT_LOG_TYPE("003", "退房日志"),
	CHECKOUT_SETTLE_LOG_BIZ_TYPE("016", "结账退房"),
	CHECKOUT_GOSETTLE_LOG_BIZ_TYPE("017", "走结"),

	ORDER_TRANS_LOG_TYPE ("004", "订单异动日志"),
	ORDER_UPDATE_REMARK_LOG_BIZ_TYPE("018", "更改订单备注"),
	ORDER_UPDATE_CHECKINSTAND_LOG_BIZ_TYPE("019", "更改入住标准"),
	ORDER_UPDATE_OWNER_LOG_BIZ_TYPE("020", "更改订单所属"),
	ORDER_UPDATE_GUESTINFO_LOG_BIZ_TYPE("021", "更改客人信息"),
	ORDER_UPDATE_ROOMPRICE_LOG_BIZ_TYPE("022", "更改房价"),
	ORDER_AUTOACCOUNT_CANCEL_LOG_BIZ_TYPE("023", "取消自动计费"),
	ORDER_CHECKOUT_ZERO_LOG_BIZ_TYPE("024", "零消费退房"),
	ORDER_OVERSTAY_LOG_BIZ_TYPE("025", "续住"),
	ORDER_RELAROOM_LOG_BIZ_TYPE("026", "联房"),
	ORDER_RELAROOM_QUIT_LOG_BIZ_TYPE("027", "退出联房"),
	ORDER_CHANGEROOM_LOG_BIZ_TYPE("028", "换房"),

	ACCOUNT_LOG_TYPE("005", "账务日志"),
	ACCOUNT_DJ_LOG_BIZ_TYPE("1", "订金"),
    ACCOUNT_SK_LOG_BIZ_TYPE("2", "收款"),
    ACCOUNT_TK_LOG_BIZ_TYPE("3", "退款"),
    ACCOUNT_NOSHOW_LOG_BIZ_TYPE("4", "NOSHOW"),
    ACCOUNT_YJ_LOG_BIZ_TYPE("5", "押金"),
    ACCOUNT_MD_LOG_BIZ_TYPE("6", "免单"),
    ACCOUNT_QT_LOG_BIZ_TYPE("7", "其他"),
    ACCOUNT_YSK_LOG_BIZ_TYPE("8", "预收款"),
    ACCOUNT_DWZF_LOG_BIZ_TYPE("9", "单位支付"), 
    ACCOUNT_ZJZF_LOG_BIZ_TYPE("10", "中介支付"), 
    ACCOUNT_HYZF_LOG_BIZ_TYPE("11", "会员支付"),
    ACCOUNT_TRZF_LOG_BIZ_TYPE("12", "他人支付"),
    ACCOUNT_DWJS_LOG_BIZ_TYPE("13", "单位结算"),
    ACCOUNT_ZJJS_LOG_BIZ_TYPE("14", "中介结算"),
	
    ACCOUNT_XSD_LOG_BIZ_TYPE("51", "销售点"),
    ACCOUNT_YSFF_LOG_BIZ_TYPE("52", "夜审房费"),
    ACCOUNT_JSFF_LOG_BIZ_TYPE("53", "加收房费"),
    ACCOUNT_XTJF_LOG_BIZ_TYPE("54", "系统计费"),
    ACCOUNT_NSFF_LOG_BIZ_TYPE("55", "NOSHOW房费"),
    ACCOUNT_GRDF_LOG_BIZ_TYPE("56", "个人代付"),
    ACCOUNT_DWDF_LOG_BIZ_TYPE("57", "单位代付"),
    ACCOUNT_ZJDF_LOG_BIZ_TYPE("58", "中介代付"),
    ACCOUNT_HYDF_LOG_BIZ_TYPE("59", "会员代付"),

	DEPARTURE_LOG_TYPE("006", "离店日志"),
	DEPARTURE_GOSETTLE_LOG_TYPE("029", "走结结算"),
	DEPARTURE_UNDO_CHECKOUT_LOG_TYPE("030", "撤销退房"), // 重新入住
	DEPARTURE_ANTI_SETTLE_LOG_TYPE("031", "反结账"),
	
	
	MEMBER_LOG_TYPE("007", "会员日志"),
	DOOR_LOCK_LOG_TYPE("008", "门锁日志"),
	
	PRICE_SCHEME_LOG_TYPE("032", "价格方案日志"),
	ADD_PRICE_SCHEME_LOG_TYPE("033", "新增价格方案日志"),
	MODIFY_PRICE_SCHEME_LOG_TYPE("034", "修改价格方案日志");
	
	
	private String code;
	private String name;
	
	LogBizTypeEnum(String code, String name) {
		this.code = code;
		this.name = name;
	}
	
	public static String getDescByCode(String code) {
		for (LogBizTypeEnum enume : LogBizTypeEnum.values()) {
			if (enume.getCode().equals(code)) {
				return enume.getName();
			}
		}
		return "未知枚举项";
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
}
